package com.kele.system.service;

import com.github.pagehelper.PageInfo;
import com.kele.system.model.dto.queryParam.UserListParam;
import com.kele.system.model.entity.Menu;
import com.kele.system.model.entity.User;

import java.util.List;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2023/4/23 18:03
 * @Version:
 */
public interface UserService {

    User getUserByUsername(String username);

    List<String> getAuthoritiesByUserId(String userId);

    /**
     * 分页查询用户信息
     * @param
     * @return java.util.List<com.kele.system.model.entity.User>
     * @author: Kele
     * @date 2023/4/25 20:16
     */
    PageInfo<User> getUserList(UserListParam userListParam);

    List<Menu> findMenuByUserId(String userId);

    /**
     * 添加用户
     * @param user
     * @return int
     * @author: Kele
     * @date 2023/4/25 22:28
     */
    int addUser(User user);
}
